package shared;

import java.rmi.Remote;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;

public interface ServerRemoteInterface extends Remote 
{
	
	
	public String test() throws RemoteException;
	
	public User getUser(String userName)                                  throws RemoteException;
	
	public Stock queryStock(String stockName)                             throws RemoteException;
	
	public Status buy(String stockName, int number, String userName)      throws RemoteException;
	
	public Status sell(String stockName, int number, String userName)     throws RemoteException;
	
	public Status modifyStockPrice(String stockName, double newPrice)     throws RemoteException;
	
	public ArrayList<Stock> getAllStocks()                                throws RemoteException;
	
}
